package main

import (
	"fmt"
	"os"

	v2 "gopkg.in/yaml.v2"
)

type ServerConfig struct {
	Server   string   `yaml:"server"`
	Redis    string   `yaml:"redis"`
	Services []string `yaml:"services"`
}

func main() {
	path := "../../server/server.yaml"
	data, _ := os.ReadFile(path)
	var server *ServerConfig
	v2.Unmarshal(data, &server)
	fmt.Println(server)
}
